#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_InstanceEditor.h"

class InstanceEditor : public QMainWindow
{
	Q_OBJECT

public:
	InstanceEditor(QWidget *parent = Q_NULLPTR);
	virtual ~InstanceEditor();

public slots:
	void on_btnOpen_clicked();
	void on_btnSave_clicked();
	void on_btnClose_clicked();
	void on_btnRemove_clicked();
	void on_btnInsert_clicked();
	void on_btnMoveUp_clicked();
	void on_btnMoveDown_clicked();
	void on_btnCreateSheet_clicked();
	void on_btnDestroySheet_clicked();
	void on_btnThread_clicked();
	void on_tableWidget_itemDoubleClicked(QTableWidgetItem *item);
	void on_tableWidget_cellChanged(int row, int column);
	void onTabBarCurrentChanged(int index);

private:
	void fillTableWidget(const QString& sheetName);

private:
	Ui::InstanceEditorClass ui;
	QTabBar* m_tabBar;
};
